package com.happy.cat.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.happy.cat.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * 用户卡券对象 user_card_voucher
 * 
 * @author verne
 * @date 2020-08-13
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName(autoResultMap = true )
@ApiModel(value="用户卡券对象", description="用户卡券对象数据")
public class UserCardVoucher implements Serializable {

private static final long serialVersionUID=1L;


    /** id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 卡券名称 */
    @Excel(name = "卡券名称")
    @ApiModelProperty(value = "卡券名称")
    private String cardVoucherName;

    /** 卡券类型 */
    @Excel(name = "卡券类型")
    @ApiModelProperty(value = "卡券类型")
    private Long cardVoucherType;

    /** 使用规则 */
    @Excel(name = "使用规则")
    @ApiModelProperty(value = "使用规则")
    private String useRule;

    /** 卡券金额 */
    @Excel(name = "卡券金额")
    @ApiModelProperty(value = "卡券金额")
    private Double cardAmount;

    /** 有效期 */
    @Excel(name = "有效期" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "有效期")
    private Date effectiveTime;

    /** 失效日期 */
    @Excel(name = "失效日期" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "失效日期")
    private Date invalidTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /** 账号id */
    @Excel(name = "账号id")
    @ApiModelProperty(value = "账号id")
    private Long accountId;
}
